<?php
include_once("functions/db_manipulate.php");

if (init()) {
    redirect("?action=index");
    exit();
}

?>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Вход в админскую часть сайта</title>
    <link rel="stylesheet" type="text/css" href="css/general.css">
    <script src="../resources/jquery.js"></script>

    <meta charset="UTF-8">
</head>

<body>
<div class="contentdiv" style="margin-top: 10%">
    <div class="blockheader">
        Авторизация:
    </div>

    <!--    <form accept-charset="UTF-8" method="post" action="login_handler.php" id="loginform">-->
    <!--        <br>Login: <input type="text" name="login" maxlength="20"><br>-->
    <!--        Password: <input type="password" name="pass" maxlength="20"><br>-->
    <!--    </form>-->
    <!---->
    <!--    <div class="blockuserbutton" onclick="$('#loginform').submit()">-->
    <!--        Продолжить-->
    <!--    </div>-->

    <div class="loginformdiv">
        <form action="?action=loghand" method="post" id="loginform">
            <div class="loginfield">
                <div class="formlabeldiv">
                    Логин:
                </div>
                <div class="forminputdiv"><input type="text" name="login"
                                                 class="forminput"></div>
            </div>

            <div class="loginfield">
                <div class="formlabeldiv">
                    Пароль:
                </div>
                <div class="forminputdiv"><input type="password" maxlength="20"
                                                 name="pass" class="forminput"></div>
            </div>
            <div class="loginbuttondiv">
                <div class="loginbutton" onclick="$('#loginform').submit()">
                    Войти
                </div>
            </div>
        </form>
    </div>

</div>
</body>
</html>